CentOS 6
Sponsored Link

Munin : Install
2015/02/18
 
Install Munin to monitor system status.
[1]
[2] Install Munin server.
Also Install Munin agent to monitor Munin server itself.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install munin munin-node
[3] Configure Munin.
[root@dlp ~]#
vi /etc/munin/munin.conf
# line 98: change to your own hostname

[
dlp.srv.world
]
    address 127.0.0.1
    use_node_name yes
[root@dlp ~]#
vi /etc/httpd/conf.d/munin.conf
# near line 17: add access permission

Order Deny,Allow
Deny from all
Allow from 127.0.0.1 10.0.0.0/24
[root@dlp ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[ OK ]

Starting httpd:
[ OK ]
# add a user ( create a new file with "-c" ⇒ only add "-c" at the first time. )

[root@dlp ~]#
htpasswd -c /etc/munin/munin-htpasswd cent

New password:
# set password

Re-type new password:
Adding password for user cent
[4] Configure Munin node as a monitoring target.
[root@dlp ~]#
vi /etc/munin/munin-node.conf
# line 37: change to your own hostname

host_name
dlp.srv.world
[root@dlp ~]#
/etc/rc.d/init.d/munin-node start

Starting Munin Node:
[ OK ]

[root@dlp ~]#
chkconfig munin-node on
[5] Access to the "http://(Munin server's hostname or IP address)/munin/" from a client which is in the network allowed in config. Then, authentication is required, input a username and password you set in [3] and proceed next.
[6] After sucessing authentication, the index page is displayed. It's possible to see graphs to click a hostname.
 
Tweet